package com.forum.module.system.dal.mysql.feedback;

import com.forum.framework.common.pojo.PageResult;
import com.forum.framework.mybatis.core.mapper.BaseMapperX;
import com.forum.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.forum.module.system.controller.admin.feedback.vo.FeedBackPageReqVO;
import com.forum.module.system.dal.dataobject.feedback.FeedBackDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 功能:
 * 作者:ouyzh
 * 日期:2025/3/19 21:11
 */
@Mapper
public interface FeedBackMapper extends BaseMapperX<FeedBackDO> {
    default PageResult<FeedBackDO> selectPage(FeedBackPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<FeedBackDO>()
                .betweenIfPresent(FeedBackDO::getCreateTime, reqVO.getCreateTime()));
    }
}
